#include"SList.h"
void func1() {
	SListNode* node1 = (SListNode*)malloc(sizeof(SListNode));
	SListNode* node2 = (SListNode*)malloc(sizeof(SListNode));
	SListNode* node3 = (SListNode*)malloc(sizeof(SListNode));
	SListNode* node4 = (SListNode*)malloc(sizeof(SListNode));
	node1->data = 1;
	node2->data = 2;
	node3->data = 3;
	node4->data = 4;
	node1->next = node2;
	node2->next = node3;
	node3->next = node4;
	node4->next = NULL;

	SListNode* plist = node1;
	SListNode* pos = SLTFind(plist, 3);
	//SLTPushBack(&plist, 6);
	//SLTPushFront(&plist, 6);
	//SLTPopBack(&plist);
	//SLTPopFront(&plist);
	//Print(SLTFind(plist, 1));
	//SLTInsert(&plist, pos, 100);
	//SLTInsertAfter(pos, 99);
	//SLTErase(&plist, pos);
	SLTEraseAfter(pos);
    Print(plist);

}
int main() {
	func1();
	return 0;
}